<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<script>
// 54张牌  分给3个人，  17张 
let pai = [] ;
let a = [] ;
let b = [];
let c = [];

//初始化
for (let i=1; i<=54; i++) {
    pai.push(i); 
}
//洗牌
pai.sort(()=> 0.5 - Math.random());
//发牌  
for(let i=1; i<=17; i++){
    a.push( pai.pop() ); //删除一张
    b.push( pai.pop() );
    c.push( pai.pop() );
}

console.log( pai );
console.log( a );
console.log( b );
console.log( c );


    
</script>
</body>
</html>